package com.tang.javaSwingCaculate.demo;

/**
 * @author tmh
 * @date 2022/12/5 0:19
 * @description
 */
public class demoTest {
    public static void main(String[] args) {
        String input = "a+b*c+(d*e+f)*g";
        String inputTest="1+2*3+(4*5+6)*7";
        String test = "a+(b-c)*d";
        String realTest = "1+(2-3)*4";
        String division="9/3/3";
        String xiaoshu="";
        InToPost inToPost = new InToPost(xiaoshu);
        MyStack characterMyStack = inToPost.formatTrans();
        //期望结果 a b c * + d e * f + g * +
        characterMyStack.traverse();
        System.out.println();
        Integer result = inToPost.calculateResult();

        System.out.println(result);
    }
}

